package com.wntms.ywa.dao;


import com.wntms.ywa.pojo.CustomerInformation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 发货人信息操作
 */
@Mapper
public interface PostDao {
    //增加发货人信息
    @Insert("insert into customer_out values(null,#{name},#{number},#{address})")
    public void addCustomerout(CustomerInformation customerOut);

    //查找发货人信息
    @Select("select * from customer_out where id = #{id}")
    public CustomerInformation findById(Integer id);
}
